﻿@model qltscd.Models.BaseClient.DanhMucDonViQuanLy
@{
    ViewBag.Title = "Sửa đơn vị";
    Layout = "~/Views/Shared/Modules/_LayoutDanhMucNhapLieu.cshtml";
}
@*<h2>Create</h2>*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function submitTaoDonViQuanLy(kieu) {
        document.getElementById("kieu").value = kieu;
        document.forms["TaoDonViQuanLy"].submit();
    }
</script>
@using (Html.BeginForm("SuaDonVi", "DonViQuanLy", FormMethod.Post, new { @id = "TaoDonViQuanLy" })) {
    @Html.ValidationSummary(true)
    @Html.HiddenFor(o => o.IdentityDonVi);
    <input type="hidden" value="0" name="kieu" id="kieu" />
    <fieldset>
        <legend>Danh Mục Đơn Vị Quản Lý</legend>
       <table border="0" width="100%" cellpadding="10px" cellspacing="10px">
            <tr>
                <td style="margin-left: 10px;" class="label_col" width="30%">
                    Mã đơn vị
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.MaDonVi, new { @style = "width:97%; " })
                   
                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Tên đơn vị
                </td>
                <td>
                    
                        @Html.TextBoxFor(model => model.TenDonVi, new { @style = "width:97%; " })
                       
                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Tên viết tắt
                </td>
                <td>
                    
                        @Html.TextBoxFor(model => model.TenVietTat, new { @style = "width:97%; " })
                        
                </td>
            </tr>
        </table>
    </fieldset>
    <div class="divButton">
        <input type="submit" value="Lưu" class="button"/>&nbsp;
        <input type="reset" value="Nhập lại" class="button" />&nbsp;
        @Html.ActionLink("Thoát", "Index", null, new { @class = "button" })
    </div>
}
<div class="errBlock">
                        @Html.ValidationMessageFor(Model => Model.MaDonVi, "", new { @style = "display:block" })
                        @ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]
                        <br />
                        @Html.ValidationMessageFor(model => model.TenDonVi, "", new { @style = "display:block" })
                    
                        @Html.ValidationMessageFor(model => model.TenVietTat, "", new { @style = "display:block" })
                    
                    </div>